package com.ruoyi.bizsys.service;

import java.util.List;

import com.ruoyi.bizsys.domain.DeviceContacts;
import com.baomidou.mybatisplus.extension.service.IService;
import com.ruoyi.bizsys.domain.DeviceContactsRelative;

/**
 * 通讯录授权Service接口
 *
 * @author african-loan
 * @date 2021-12-30
 */
public interface IDeviceContactsService extends IService<DeviceContacts>{

    int selectContactsCount(String deviceId, String applyNo, String tableName);

    Integer batchSaveContacts(List<DeviceContacts> contactsList,String deviceId);
    Integer batchSaveContactsTableName(List<DeviceContacts> contactsList,String tableName);

    String getNewTableName();
    String getTableName(String deviceId);

    void checkNewTableData();

    void clearData();
    void clearDataByIds(String tableName,String ids);

    int getCntContactsNum(String tableName,String userId, String applyNo);

    String get7DaysContactsCount(String tableName, String deviceId);

    void syncExcludePhone();

    List<DeviceContacts> getCollectionPhone(List<DeviceContactsRelative> tableName, String userId, int size);
}

